#define RLED (11)
#define GLED (12)
#define SW (3)
int value = 0;

void setup() {
  // put your setup code here, to run once:
  pinMode(RLED, OUTPUT);
  pinMode(GLED, OUTPUT);
  pinMode(SW,INPUT);
  
  digitalWrite(RLED,LOW),
  digitalWrite(GLED,LOW);
}

void loop() {
  // put your main code here, to run repeatedly:
   
   if(0 == digitalRead(SW)){
   digitalWrite(RLED,HIGH),
  digitalWrite(GLED,HIGH);
   }
   if(1 == digitalRead(SW))
      {digitalWrite(RLED,LOW),
       digitalWrite(GLED,LOW);
   }
 /* value = digitalRead(SW);

  if(HIGH == value){
    digitalWrite(RLED,HIGH);
    digitalWrite(GLED,LOW);
    delay(1000);
  }
  if(LOW == value)
  {
    digitalWrite(GLED,HIGH);
    digitalWrite(RLED,LOW);
    delay(1000);
  } */
}
